package com.hongyue.dey02;

import java.io.*;

public class Demo {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new FileWriter("dey13\\src\\com\\hongyue\\dey02\\aaa.txt"));
        System.out.println("请输入 输入end结束");
        for (String i; !(i = br.readLine()).equals("end"); ) {
            bw.write(i);
            bw.newLine();
            bw.flush();
        }
        br.close();
        bw.close();
    }
}
